import React, { Component } from 'react'
import { Redirect, Switch, Route } from 'react-router'
import Login from '../../pages/Login'
import UserCenter from '../../pages/UserCenter'
export default class App extends Component {
    render() {
        return (
            <div>
                <Switch>
                    <Route path="/login" component={Login} />
                    <Route path="/usercenter" component={UserCenter} />
                    <Redirect to="/login" />
                </Switch>
            </div>
        )
    }
}
